using System;
using CosyTrade.Store;

namespace CosyTrade.ClientForm
{
    public class CompanyStoreView
    {
        private readonly CompanyProductView companyStore;
        private int mark;
        private MarkViewType markType;

        public CompanyStoreView(CompanyProductView companyStore)
        {
            this.companyStore = companyStore;
        }

        public CompanyProductView CompanyStore
        {
            get { return companyStore; }
        }

        public int Mark
        {
            get { return mark; }
            set { mark = value; }
        }

        public MarkViewType MarkType
        {
            get { return markType; }
            set { markType = value; }
        }

        #region readonlyProperty
        public string TradeCode
        {
            get { return companyStore.TradeCode; }
        }
        
        public Product Product
        {
            get { return companyStore.Store.Products; }
        }

        public CompanyStore StoreCount
        {
            get { return companyStore.Store; }
        }
        
        public ProductPrice Price
        {
            get { return companyStore.Price; }
        }
        #endregion
    
        [Flags]
        public enum MarkViewType
        {
            Lost,
            Spoil,
        }
    }
    
}